Moving from fast-xml-parser 3 to 4 - parser.parse is not a function

With version 3 of the fast-xml-parser package you would commonly import and use it as follows:

import parser from "fast-xml-parser";
...
const feed = parser.parse(feedText);

This no longer works with version 4 and will throw the error: "parser.parse is not a function". To resolve this you need to specifically import the XMLParser and instantiate it before using it.

import { XMLParser } from "fast-xml-parser";
...
const parser = new XMLParser();
const feed = parser.parse(feedText);

You can find the new documentation here. Just look for the example section. I hope if you ran into this, this post saved yu a little time and frustration.